//
//  TopView.m
//  kyMusicPlayer
//
//  Created by 翁科宇 on 2018/5/17.
//  Copyright © 2018年 翁科宇. All rights reserved.
//

#import "TopView.h"

@implementation TopView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    _backBtn = [[UIButton alloc] initWithFrame:CGRectMake(10, 30, 40, 40)];
    [_backBtn setImage:[UIImage imageNamed:@"cm2_live_btn_back"] forState:UIControlStateNormal];
    [_backBtn setImage:[UIImage imageNamed:@"cm2_live_btn_back_prs"] forState:UIControlStateHighlighted];
    [self addSubview:_backBtn];
    
    _songTitleLb = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, frame.size.width - 20, frame.size.height / 2)];
    _songTitleLb.font = [UIFont systemFontOfSize:20.0];
    _songTitleLb.textColor = [UIColor whiteColor];
    _songTitleLb.text = @"";
    _songTitleLb.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_songTitleLb];
    
    _singerNameLb = [[UILabel alloc] initWithFrame:CGRectMake(10, frame.size.height / 2 - 20, frame.size.width - 20, frame.size.height / 2 - 30)];
    _singerNameLb.font = [UIFont systemFontOfSize:17.0];
    _singerNameLb.textColor = [UIColor whiteColor];
    _singerNameLb.text = @"";
    _singerNameLb.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_singerNameLb];
    
    return self;
}

@end
